package com.seek.edustatistics.client;

import com.seek.commonutils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: wml
 * @since: 2022/3/5 23:26
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    // 查询某一天注册人数
    @GetMapping("/educenter/member/countRegister/{date}")
    ResponseResult countRegister(@PathVariable("date") String date);

    // 统计一个月以内注册的人数，按天数统计
    @GetMapping("/educenter/member/admin/getRegistryMonth")
    ResponseResult getRegistryMonth();

    // 统计一年内注册的人数，按月数统计
    @GetMapping("/educenter/member/admin/getRegistryYear")
    ResponseResult getRegistryYear();
}
